#ifndef WIDGET_H
#define WIDGET_H

#include "pathplanmw.h"
#include "settingmw.h"
#include "mydialog.h"
#include "infomw.h"
#include <QWidget>
#include <QTimer>
#include <QDateTime>
#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QJsonDocument> //json文档
#include <QJsonArray>   //json数组
#include <QJsonObject>  //json对象
#include <QMouseEvent>
#include <QButtonGroup>
#include <QMenu>
#include <QFile>
#include <QTextStream>
#include <QMessageBox>
QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

public slots:
    void showDateTimeSlot();
    void showWeatherSlot();
    void onNetworkReplySlot(QNetworkReply *reply);
signals:

private slots:

    void on_btn_set_clicked();

    void showDialog(int id);

    void on_btn_info_clicked();

    void on_btn_pathplanning_clicked();

private:

    Ui::Widget *ui;
    QTimer *timer1;
    QTimer *timer2;
    QNetworkAccessManager manager;
    MyDialog *msgDiglog;
    QButtonGroup m_btnGroup;

};
#endif // WIDGET_H
